<div class="visastypes view">
<h2><?php  echo __('Visastype');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($visastype['Visastype']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($visastype['Visastype']['name']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Visastype'), array('action' => 'edit', $visastype['Visastype']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Visastype'), array('action' => 'delete', $visastype['Visastype']['id']), null, __('Are you sure you want to delete # %s?', $visastype['Visastype']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Visastypes'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Visastype'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Visas'), array('controller' => 'visas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Visa'), array('controller' => 'visas', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Visas');?></h3>
	<?php if (!empty($visastype['Visa'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Studentinfo Id'); ?></th>
		<th><?php echo __('Visastype Id'); ?></th>
		<th><?php echo __('Issue Date'); ?></th>
		<th><?php echo __('Entry From'); ?></th>
		<th><?php echo __('Stay Until'); ?></th>
		<th><?php echo __('Period'); ?></th>
		<th><?php echo __('Purpose'); ?></th>
		<th><?php echo __('Limmited By'); ?></th>
		<th><?php echo __('Info'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($visastype['Visa'] as $visa): ?>
		<tr>
			<td><?php echo $visa['id'];?></td>
			<td><?php echo $visa['studentinfo_id'];?></td>
			<td><?php echo $visa['visastype_id'];?></td>
			<td><?php echo $visa['issue_date'];?></td>
			<td><?php echo $visa['entry_from'];?></td>
			<td><?php echo $visa['stay_until'];?></td>
			<td><?php echo $visa['period'];?></td>
			<td><?php echo $visa['purpose'];?></td>
			<td><?php echo $visa['limmited_by'];?></td>
			<td><?php echo $visa['info'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'visas', 'action' => 'view', $visa['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'visas', 'action' => 'edit', $visa['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'visas', 'action' => 'delete', $visa['id']), null, __('Are you sure you want to delete # %s?', $visa['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Visa'), array('controller' => 'visas', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
